<?php
/**
 * 用户模块
 */

Route::group([], function (\Illuminate\Routing\Router $router) {
    $router->post('sportRank', 'UserController@sportRank');
    $router->post('organization', 'UserController@organization');
    //获取单个用户信息
    $router->post('getInfo', 'UserController@getInfo');
    $router->post('scoreRank', 'UserController@scoreRank');

});

Route::group([
    'middleware' => 'jwt.auth',
], function (\Illuminate\Routing\Router $router) {


    $router->post('feedback', 'UserController@feedback');






    $router->post('third_bind', 'UserController@third_bind');

    //修改用户信息
    $router->post('edit', 'UserController@edit');

    $router->any('money_detail', 'UserController@money_detail');




    $router->get('coupons', 'UserController@coupons');

    $router->any('integrals', 'UserController@integrals');

    $router->any('rechargeView', 'UserController@rechargeView');

    $router->get('addresses', 'AddressController@addresses');
    $router->post('addresses', 'AddressController@edit');
    $router->delete('addresses', 'AddressController@delete');
    $router->get('getArea', 'AddressController@getArea');

    $router->get('superiorInfo', 'UserController@superiorInfo');

    $router->get('myTeam', 'UserController@myTeam');
    $router->get('userRebate', 'UserController@userRebate');

    $router->get('vouchers', 'UserController@vouchers');

    $router->get('census', 'UserController@census');
    $router->get('orderDetail', 'UserController@orderDetail');

    $router->get('bill', 'UserController@bill');

    $router->get('wallet', 'UserController@wallet');
    $router->get('info', 'UserController@info');
    $router->get('is_get', 'UserController@is_get');


    $router->post('buyMember', 'MemberController@buyMember');

    $router->post('confirm', 'UserController@confirm');

    $router->post('confirm', 'UserController@cash');
    $router->post('receive', 'UserController@receive');
    $router->post('writeOff', 'UserController@writeOff');





});